package com.xuanmiao.smsback.dao.mapper;

import com.xuanmiao.smsback.dao.model.MessagePushHistoryDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MessagePushHistoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MessagePushHistoryDO record);

    int insertSelective(MessagePushHistoryDO record);

    MessagePushHistoryDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MessagePushHistoryDO record);

    int updateByPrimaryKey(MessagePushHistoryDO record);

    void save(MessagePushHistoryDO messagePushHistoryDO);

    List<MessagePushHistoryDO> selectByUserId(Integer userId);

    void updateStatus(@Param("userId") Integer userId);

    void deleteReadyStatus(@Param("userId") Integer userId);

    int countUnread(@Param("userId") Integer userId);

}